﻿#if _MSC_VER >= 1600    // VC2010
#pragma execution_character_set("utf-8")
#endif
#include "QtUtf8.h"
#include <QtWidgets/QApplication>
#if defined(_MSC_VER) && defined(WIN32) && defined(_DEBUG)
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
#define DEBUG_NEW new( _NORMAL_BLOCK, __FILE__, __LINE__ )
#define new DEBUG_NEW
#endif

int main(int argc, char *argv[])
{
#if defined(_MSC_VER) && defined(_DEBUG)
	_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif

	qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
	QCoreApplication::setOrganizationName("NJ-RSDW");
	QCoreApplication::setOrganizationDomain("ruishan.cn");
	QCoreApplication::setApplicationName("QtUtf8");

	QApplication a(argc, argv);
	QtUtf8 w;
	w.show();
	return a.exec();
}
